package stark.app.api;

import okhttp3.OkHttpClient;
import stark.common.basic.retrofit.BaseApi;

/**
 * <pre>
 *     author : cfans
 *     time   : 2020/11/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class AliSDKApi extends BaseApi {

    /**
     * 静态内部类单例
     */
    private static class ApiHolder {
        private static AliSDKApi sApi = new AliSDKApi();
        private final static AliSDKApiService API_SERVICE = sApi.initRetrofit(AliSDKApiService.PHONE_URL)
                .create(AliSDKApiService.class);
    }

    public static AliSDKApiService getInstance() {
        return AliSDKApi.ApiHolder.API_SERVICE;
    }

    /**
     * 做自己需要的操作
     */
    @Override
    protected OkHttpClient setClient() {
        return null;
    }
}
